<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>SASAPI</title><script src="../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../index-files";
//--></script><link href="../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../overview-summary.html" title="Overview" rel="top"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><pre><span class="lineno" id="1">     1  </span><span class="comment doc">/**
<span class="lineno" id="2">     2  </span> * SpecialPropertyModifier
<span class="lineno" id="3">     3  </span> * A special property which actually acts on other properties
<span class="lineno" id="4">     4  </span> *
<span class="lineno" id="5">     5  </span> * @author		Zeh Fernando
<span class="lineno" id="6">     6  </span> * @version		1.0.0
<span class="lineno" id="7">     7  </span> * @private
<span class="lineno" id="8">     8  </span> */</span>
<span class="lineno" id="9">     9  </span>
<span class="lineno" id="10">    10  </span><span class="key">class</span> caurina.transitions.SpecialPropertyModifier {
<span class="lineno" id="11">    11  </span>
<span class="lineno" id="12">    12  </span>	<span class="key">public</span> <span class="key">var</span> modifyValues:Function;
<span class="lineno" id="13">    13  </span>	<span class="key">public</span> <span class="key">var</span> getValue:Function;
<span class="lineno" id="14">    14  </span>
<span class="lineno" id="15">    15  </span>	<span class="comment doc">/**
<span class="lineno" id="16">    16  </span>	 * Builds a new special property modifier object.
<span class="lineno" id="17">    17  </span>	 * 
<span class="lineno" id="18">    18  </span>	 * @param		p_modifyFunction		Function		Function that returns the modifider parameters.
<span class="lineno" id="19">    19  </span>	 */</span>
<span class="lineno" id="20">    20  </span>	<span class="key">public</span> <span class="key">function</span> SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function) {
<span class="lineno" id="21">    21  </span>		modifyValues = p_modifyFunction;
<span class="lineno" id="22">    22  </span>		getValue = p_getFunction;
<span class="lineno" id="23">    23  </span>	}
<span class="lineno" id="24">    24  </span>
<span class="lineno" id="25">    25  </span>	<span class="comment doc">/**
<span class="lineno" id="26">    26  </span>	 * Converts the instance to a string that can be used when trace()ing the object
<span class="lineno" id="27">    27  </span>	 */</span>
<span class="lineno" id="28">    28  </span>	<span class="key">public</span> <span class="key">function</span> toString():String {
<span class="lineno" id="29">    29  </span>		<span class="key">var</span> value:String = <span class="str_const">""</span>;
<span class="lineno" id="30">    30  </span>		value += <span class="str_const">"[SpecialPropertyModifier "</span>;
<span class="lineno" id="31">    31  </span>		value += <span class="str_const">"modifyValues:"</span>+modifyValues.toString();
<span class="lineno" id="32">    32  </span>		value += <span class="str_const">", "</span>;
<span class="lineno" id="33">    33  </span>		value += <span class="str_const">"getValue:"</span>+getValue.toString();
<span class="lineno" id="34">    34  </span>		value += <span class="str_const">"]"</span>;
<span class="lineno" id="35">    35  </span>		<span class="key">return</span> value;
<span class="lineno" id="36">    36  </span>	}
<span class="lineno" id="37">    37  </span>
<span class="lineno" id="38">    38  </span>
<span class="lineno" id="39">    39  </span>}
<span class="lineno" id="40">    40  </span></pre><ul class="main_nav" id="main_nav"><li><a href="../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package caurina.transitions" class="button">Package</a></li><li><a href="SpecialPropertyModifier.html" title="Detail of caurina.transitions.SpecialPropertyModifier API" class="button">Class</a></li><li><span class="button nav_current">Source</span></li><li><a href="../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>